﻿using System;
using System.Collections.Generic;

namespace Milo.Eg.Domain.Controls
{
    using Framework;

    public partial class CustomerControl
    {
        private ITriggerControl saveTrigger;
		private ITriggerControl editTrigger;

		public ITriggerControl SaveTrigger
		{
			get { return saveTrigger ?? (saveTrigger = new TriggerControl("SaveTrigger", this)); }
		}
		public ITriggerControl EditTrigger
        {
			get { return editTrigger ?? (editTrigger = new TriggerControl("EditTrigger", this)); }
        }
    }

	public partial class CustomerListControl : ControlList<Customer, CustomerControl>
	{
		public CustomerListControl(IList<Customer> customers) : base(customers) { }

		private ITriggerControl returnTrigger;
		public ITriggerControl ReturnTrigger
		{
			get { return returnTrigger ?? (returnTrigger = new TriggerControl("ReturnTrigger", this)); }
		}
	}
}
